package net.pluce.nxt.network;

/**
 * Interface defining a DirectionMessage, sent by the robot just before a direction change.
 * Instances should be sent as event objects by the NXJ connection. Classes implementing this interface should be value objects.
 * @see net.pluce.nxt.network.impl.Message
 * @author Pluce
 */
public interface DirectionMessage {
	/**
	 * Returns the angle (in degrees) the robot is about to turn. Negative values are right turns, positive values are left turns. 
	 * @return a direction (bearing) in degree
	 */
	public int getDirection();
	
	/**
	 * Returns the lejos.nxt.robotics.Colors index of the last identified color
	 * @return a color index
	 */
	public int getColor();
}
